package com.cheng.example.book.category.thread.client001;

public class Client2 extends Thread {

    public void run() {
        while (true) {
            System.out.println(Thread.currentThread().getName());
        }
    }

    public static void main(String[] args) throws Exception {
        Client2 thread = new Client2();
        thread.start();
        sleep(1000); // 主线程延迟5秒
        thread.stop();
    }

}
